import pyautogui

pyautogui.keyDown("shift")
pyautogui.press("a")
pyautogui.keyUp("shift")

# 热键组合
pyautogui.hotkey("shift", "c")